<?php

declare(strict_types=1);

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

/**
 *  配置 - 用户等级（魅力豪气）
 */
class SettingUserLevel extends Model
{
    protected $table = 'setting_user_level';
    protected $fillable = ['level', 'title', 'number', 'level_type', 'icon', 'flag', 'chat_coin_setting', 'voice_coin_setting', 'video_coin_setting'];

    const TYPE = [
        1 => '财富等级',
        2 => '魅力等级'
    ];

    static function getLevels($maxLevel = 20)
    {
        $arr = [];
        for ($i = 1; $i <= $maxLevel; $i++) $arr[$i] = $i;
        return $arr;
    }
}
